package com.ofek.eventos.db.datatypes.predefined;

import android.content.Context;

import com.ofek.eventos.Constants;
import com.ofek.eventos.EventosApplication;
import com.ofek.eventos.R;
import com.ofek.eventos.util.TimeUtils;

public class TodayPage implements PageDefiner{


	public TodayPage() {

	}
	@Override
	public String getStartsWith() {
		return null;
	}

	@Override
	public long getStart() {
		return TimeUtils.getToday();
	}

	@Override
	public long getEnd() {
		return TimeUtils.inXDays(1);
	}

	@Override
	public String getPageTitle(final Context c) {
		return c.getString(R.string.today);
	}
	@Override
	public String getPageSubTitle(final Context c) {
		return TimeUtils.format(getStart());
	}
	@Override
	public Long getTypeId() {

		return null;
	}
	@Override
	public boolean careForTime() {
		// TODO Auto-generated method stub
		return true;
	}
	@Override
	public String getOwner() {
		return EventosApplication.EVENTOS_USER.id;
	}
	@Override
	public Long getDefaultTypeId() {
		return Constants.TYPE_ID_DIARY;
	}
}
